import ModuleGroup from '@/layout/components/ModuleGroup'

/**
 * 访问地址规则 /平台路由/模块路由/模块路由
 * 注意:1.路由中name要项目中唯一并且与视图中的name对应 2.meta中title为tag窗口、面包屑、导航菜单显示文本可做多语言 3.validLogin和validAction是前端路由鉴权
 * 导航菜单项根据后台用户模块匹配显示 建议在后台维护好模块下载模块json更新到这里
 */
export default [
  {
    // 访问地址：/appAdmin/logManage
    path: 'logManage',
    name: 'LogManage',
    component: ModuleGroup,
    meta: { 'title': 'logManage', 'icon': 'el-icon-warning', 'validLogin': false, 'validAction': false },
    children: [
      {
        // 访问地址：/appAdmin/logManage/logNormal
        path: 'logNormal',
        name: 'LogNormal',
        component: () => import('@/views/appAdmin/logManage/logNormal'),
        meta: { 'title': 'logNormal', 'icon': '', 'validLogin': true, 'validAction': true },
        children: null
      },
      {
        // 访问地址：/appAdmin/logManage/logBehavior
        path: 'logBehavior',
        name: 'LogBehavior',
        component: () => import('@/views/appAdmin/logManage/logBehavior'),
        meta: { 'title': 'logBehavior', 'icon': '', 'validLogin': true, 'validAction': true },
        children: null
      },
      {
        // 访问地址：/appAdmin/logManage/logRequest
        path: 'logRequest',
        name: 'LogRequest',
        component: () => import('@/views/appAdmin/logManage/logRequest'),
        meta: { 'title': 'logRequest', 'icon': '', 'validLogin': true, 'validAction': true },
        children: null
      }
    ]
  },
  {
    // 访问地址：/appAdmin/sysDicManage
    path: 'sysDicManage',
    name: 'SysDicManage',
    component: ModuleGroup,
    meta: { 'title': 'sysDicManage', 'icon': 'el-icon-notebook-2', 'validLogin': false, 'validAction': false },
    children: [
      {
        // 访问地址：/appAdmin/sysDicManage/sysDictionaryType
        path: 'sysDictionaryType',
        name: 'SysDictionaryType',
        component: () => import('@/views/appAdmin/sysDicManage/sysDictionaryType'),
        meta: { 'title': 'sysDictionaryType', 'icon': '', 'validLogin': true, 'validAction': true },
        children: null
      },
      {
        // 访问地址：/appAdmin/sysDicManage/sysDictionaryValue
        path: 'sysDictionaryValue',
        name: 'SysDictionaryValue',
        component: () => import('@/views/appAdmin/sysDicManage/sysDictionaryValue'),
        meta: { 'title': 'sysDictionaryValue', 'icon': '', 'validLogin': true, 'validAction': true },
        children: null
      }
    ]
  },
  {
    // 访问地址：/appAdmin/sysManage
    path: 'sysManage',
    name: 'SysManage',
    component: ModuleGroup,
    meta: { 'title': 'sysManage', 'icon': 'el-icon-setting', 'validLogin': false, 'validAction': false },
    children: [
      {
        // 访问地址：/appAdmin/sysManage/sysUser
        path: 'sysUser',
        name: 'SysUser',
        component: () => import('@/views/appAdmin/sysManage/sysUser'),
        meta: { 'title': 'sysUser', 'icon': '', 'validLogin': false, 'validAction': false },
        children: null
      },
      {
        // 访问地址：/appAdmin/sysManage/sysRole
        path: 'sysRole',
        name: 'SysRole',
        component: () => import('@/views/appAdmin/sysManage/sysRole'),
        meta: { 'title': 'sysRole', 'icon': '', 'validLogin': true, 'validAction': true },
        children: null
      },
      {
        // 访问地址：/appAdmin/sysManage/sysModule
        path: 'sysModule',
        name: 'SysModule',
        component: () => import('@/views/appAdmin/sysManage/sysModule'),
        meta: { 'title': 'sysModule', 'icon': '', 'validLogin': true, 'validAction': true },
        children: null
      },
      {
        // 访问地址：/appAdmin/sysManage/sysApi
        path: 'sysApi',
        name: 'SysApi',
        component: () => import('@/views/appAdmin/sysManage/sysApi'),
        meta: { 'title': 'sysApi', 'icon': '', 'validLogin': false, 'validAction': false },
        children: null
      },
      {
        // 访问地址：/appAdmin/sysManage/sysPlatform
        path: 'sysPlatform',
        name: 'SysPlatform',
        component: () => import('@/views/appAdmin/sysManage/sysPlatform'),
        meta: { 'title': 'sysPlatform', 'icon': '', 'validLogin': true, 'validAction': true },
        children: null
      }
    ]
  },
  {
    // 访问地址：/appAdmin/winServerAdmin
    path: 'winServerAdmin',
    name: 'WinServerAdmin',
    component: ModuleGroup,
    meta: { 'title': 'winServerAdmin', 'icon': '', 'validLogin': true, 'validAction': true },
    children: [
      {
        // 访问地址：/appAdmin/winServerAdmin/serviceDiscovery
        path: 'serviceDiscovery',
        name: 'ServiceDiscovery',
        component: () => import('@/views/redirect/iframePage'),
        meta: { 'title': 'serviceDiscovery', 'icon': '', 'validLogin': true, 'validAction': true, 'iframUrl': 'http://localhost:8500/ui/dc1/services' },
        children: null
      },
      {
        // 访问地址：/appAdmin/winServerAdmin/normalSite
        path: 'normalSite',
        name: 'NormalSite',
        component: () => import('@/views/redirect/iframePage'),
        meta: { 'title': 'normalSite', 'icon': '', 'validLogin': true, 'validAction': true, 'iframUrl': 'http://192.168.1.200:10000/index.html#/normalSite' },
        children: null
      },
      {
        // 访问地址：/appAdmin/winServerAdmin/netCoreSite
        path: 'netCoreSite',
        name: 'NetCoreSite',
        component: () => import('@/views/redirect/iframePage'),
        meta: { 'title': 'netCoreSite', 'icon': '', 'validLogin': true, 'validAction': true, 'iframUrl': 'http://192.168.1.200:10000/index.html#/netCoreSite' },
        children: null
      }
    ]
  },
  {
    // 访问地址：/appAdmin/linuxServerAdmin
    path: 'linuxServerAdmin',
    name: 'LinuxServerAdmin',
    component: ModuleGroup,
    meta: { 'title': 'linuxServerAdmin', 'icon': '', 'validLogin': true, 'validAction': true },
    children: [
      {
        // 访问地址：/appAdmin/linuxServerAdmin/serviceAdmin
        path: 'serviceAdmin',
        name: 'ServiceAdmin',
        component: () => import('@/views/redirect/iframePage'),
        meta: { 'title': 'serviceAdmin', 'icon': '', 'validLogin': true, 'validAction': true, 'iframUrl': 'http://192.168.1.200:9001/' },
        children: null
      },
      {
        // 访问地址：/appAdmin/linuxServerAdmin/netCoreSite4Linux
        path: 'netCoreSite4Linux',
        name: 'NetCoreSite4Linux',
        component: () => import('@/views/redirect/iframePage'),
        meta: { 'title': 'netCoreSite4Linux', 'icon': '', 'validLogin': true, 'validAction': true, 'iframUrl': 'http://192.168.1.200:10000/index.html#/netCoreSite4Linux' },
        children: null
      },
      {
        // 访问地址：/appAdmin/linuxServerAdmin/normalSite4Linux
        path: 'normalSite4Linux',
        name: 'NormalSite4Linux',
        component: () => import('@/views/redirect/iframePage'),
        meta: { 'title': 'normalSite4Linux', 'icon': '', 'validLogin': true, 'validAction': true, 'iframUrl': 'http://192.168.1.200:10000/index.html#/normalSite4Linux' },
        children: null
      }
    ]
  }

]
